package com.xiaoxi.mediatormode.colleague;

import com.xiaoxi.mediatormode.mediator.Mediator;

import java.awt.*;

/**
 * @Author xiaoxi
 * @ProjectName design_mode
 * @PackageName com.xiaoxi.mediatormode.colleague
 * @ClassName ColleagueButton
 * @Description TODO
 * @Date 2023/3/27 14:37
 * @Version 1.0
 */
public class ColleagueButton extends Button implements Colleague {

    private Mediator mediator;

    public ColleagueButton(String label) throws HeadlessException {
        super(label);
    }

    @Override
    public void setMediator(Mediator mediator) {
        this.mediator = mediator;
    }

    @Override
    public void setColleagueEnabled(boolean enabled) {
        setEnabled(enabled);
    }

}
